package models;

import play.db.ebean.Model;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.List;


@Entity
public class School extends Model {
    @Id
    public Integer id;
    public String title;
    public String state;
    public String image_path;
    public String description;

    public static Finder<Integer,School> finder = new Finder(
            Integer.class, School.class
    );

    public static List<School> all() {
        return finder.all();
    }

    public static School getById(Integer id) {
        return finder.byId(id);
    }

}
